package com.entity;

// Generated 09.02.2014 20:16:29 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * ResolutionEntity generated by hbm2java
 */
@Entity
@Table(name = "resolution", catalog = "jiraexcel", uniqueConstraints = @UniqueConstraint(columnNames = "id"))
public class ResolutionEntity implements java.io.Serializable {

	private Integer idResolution;
	private String self;
	private String id;
	private String description;
	private String name;
	private Set<FieldsEntity> fieldsEntities = new HashSet<FieldsEntity>(0);

	public ResolutionEntity() {
	}

	public ResolutionEntity(String self, String id, String description,
			String name, Set<FieldsEntity> fieldsEntities) {
		this.self = self;
		this.id = id;
		this.description = description;
		this.name = name;
		this.fieldsEntities = fieldsEntities;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id_resolution", unique = true, nullable = false)
	public Integer getIdResolution() {
		return this.idResolution;
	}

	public void setIdResolution(Integer idResolution) {
		this.idResolution = idResolution;
	}

	@Column(name = "self", length = 1000)
	public String getSelf() {
		return this.self;
	}

	public void setSelf(String self) {
		this.self = self;
	}

	@Column(name = "id", unique = true, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "description", length = 1000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "name", length = 1000)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "resolutionEntity")
	public Set<FieldsEntity> getFieldsEntities() {
		return this.fieldsEntities;
	}

	public void setFieldsEntities(Set<FieldsEntity> fieldsEntities) {
		this.fieldsEntities = fieldsEntities;
	}

}
